home *** CD-ROM | disk | FTP | other *** search
- /* xinit
- * initializes xcmd parameter block
- */
- #include "xcmd.h"
-
- #ifdef XTEST
-
- xinit(pb)
- XCmdBlock *pb;
- {
- short i;
-
- /* for testing purposes, we simply set up 16 handles of 255 bytes
- * each and leave them around. while a bit sloppy, it does not
- * make any difference in the test environment.
- */
- pb->paramCount = 0;
- for(i = 0;i <= 15;i++)
- pb->params[i] = NewHandle(255);
-
- /* the following are only available in the FoxBase
- * version of the XCMD.
- */
- #ifdef FOX
- pb->version = 1;
- pb->options = 0;
- pb->PrintRec = 0L;
- pb->printPort = 0L;
- pb->foxuser = -1;
- pb->setresource = -1;
- pb->utillong1 = 0L;
- pb->utillong2 = 0L;
- pb->utillong3 = 0L;
- pb->utillong4 = 0L;
- pb->utilhandle1 = 0L;
- pb->utilhandle2 = 0L;
- pb->utilhandle3 = 0L;
- pb->utilhandle4 = 0L;
- #endif
- }
-
-
- #endif